package biz.dewavrin.sipphony
{
    import mx.logging.Log;
    import mx.logging.targets.TraceTarget;
    
    import org.granite.tide.ITideModule;
    import org.granite.tide.Tide;
    
    import org.granite.tide.validators.ValidatorExceptionHandler;
    
    import org.granite.tide.seam.framework.PagedQuery;
    
    import biz.dewavrin.sipphony.ctl.*;
    
    
    [Bindable]
    public class SipphonyModule implements ITideModule {
        
        public function init(tide:Tide):void {
            var t:TraceTarget = new TraceTarget();
            t.filters = ["org.granite.*"];
            Log.addTarget(t);
            
            //tide.addExceptionHandler(ValidatorExceptionHandler);
            //tide.addExceptionHandler(AccessDeniedExceptionHandler);
            
            // Initialize Tide client components
            tide.addComponent("searchLocationCtl", SearchLocationCtl, false, true, Tide.RESTRICT_YES);
        }
    }
}
